import { defineConfig, presetIcons, presetMini } from 'unocss'

export default defineConfig({
  // ...UnoCSS options
  blocklist: [
    ['bg-red-500', { message: 'Use bg-red-600 instead' }],
    [/-auto$/, { message: s => `Use ${s.replace(/-auto$/, '-a')} instead` }], // -> "my-auto" is in blocklist: Use "my-a" instead
  ],
  presets: [
    presetMini({
        dark:"media"
    }), // 样式预设方案
    presetIcons({
        // 图标处理器参数
        extraProperties: {// 图标样式
            display: "inline-block",
            "vertical-align": "middle"
        }
    }),
],
})